<%@ page language="java" import="java.util.* " pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
request.setCharacterEncoding("UTF-8");
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<script language="javascript">
	function mycheck() {
		if (myform.title.value == "") {
			alert("项目名称不能为空！！");
			myform.title.focus();
			return false;
		}
		
	}
</script>

  <head>
    
    <title>添加企业动态</title>
       <link href="/bestcleaner/js/tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
	<script type="text/javascript" src="/bestcleaner/js/tablecloth/tablecloth.js"></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
   <link rel="stylesheet" href="../editor/themes/default/default.css" />
	<link rel="stylesheet" href="../editor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../editor/kindeditor.js"></script>
	<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../editor/plugins/code/prettify.js"></script>

	<style>

body{
	margin:0;
	padding:0;
	background:#f1f1f1;
	font:70% Arial, Helvetica, sans-serif; 
	color:#555;
	line-height:150%;
	text-align:left;
}
a{
	text-decoration:none;
	color:#057fac;
}
a:hover{
	text-decoration:none;
	color:#999;
}
h1{
	font-size:140%;
	margin:0 20px;
	line-height:80px;	
}
h2{
	font-size:120%;
}
#container{
	margin:0 auto;
	width:1000px;
	background:#fff;
	padding-bottom:20px;
}
#content{margin:0 20px;}
p.sig{	
	margin:0 auto;
	width:680px;
	padding:1em 0;
}
form{
	margin:1em 0;
	padding:.2em 20px;
	background:#eee;
}
</style>
  </head>
  
  <body>
    <form action="addcmpdynamic" method="post" name="myform" enctype="multipart/form-data">
      <div id="content">
    <input name="cmpdynamic.img" id="cmpdynamic.img" style="visibility:hidden;" value=""></input>
    <table align="center" width="80%">
    <tr>
    <td>标题</td>
    <td><s:textfield name="cmpdynamic.title" id="title" style="width:200px"/></td>
    </tr>
    <tr>
    <td>添加图片</td>
    <td><s:file name="image"  label="选择图片"/></td>
    </tr>
    <tr>
    <td>内容</td>
    <td><pre><textarea name="cmpdynamic.content" id="content" style="width:800px;height:1000px;" value="" ></textarea></pre></td>
    
    </tr>
    <tr>
    <td></td><td><input name="Submit" type="Submit" value="提交" onClick="return mycheck();"></td>
    </tr>
    </table>
    </div>
    </form>
  </body>
</html>
